<div class='top' onmousedown='sortable()' title='可以用鼠标拖拽来随意摆放哦'>
  <div class='title'>
    <%= link_to_tool_by_setting @setting %>
  </div>
  <div class='supports'>
    
  </div>
  <div class='tools'>
    <span id="portalet_<%= @setting.id %>_arrows" style='display:none;'>
      <%= link_to "←", "index", :class => :arrow %>
      <%= link_to "↑", "index", :class => :arrow %>
      <%= link_to "↓", "index", :class => :arrow %>
      <%= link_to "→", "index", :class => :arrow %>
    </span>
    <span class='h'>
      <%= link_to_remote "移除", 
            :confirm => '确认要扔掉这片吐司吗？',
            :url => tools_flash_url(@setting),
            :method => :delete,
            :loading => "Effect.Fade('portalet_#{@setting.id}')",
            :html => {
              :class => :h 
            }            
        %>
    </span>
  </div>
</div>
<div id='tool_<%= @setting.id %>_content' class='content flash_content'>
<% if @setting.tool.action_type.popup? %>  
  <% link_to tools_flash_url(@setting.tool), :target => :_blank do %>
  <%= tool_logo_image_tag @setting.tool, :title =>'点击看宽屏', :alt => '点击看宽屏', :class => 'flash_portalet' %>
  <% end %>
<% else %>
  <%= @setting.tool.flash_embed %>
<% end %>
</div>

  